package com.grieous.domain;

import java.util.Date;

import javax.validation.constraints.Pattern;



public class User {
	
	
    private Integer id;
	
    
	@Pattern(regexp="w{4,30}")//匹配4-30个数字和字母以及下划线的字符
    private String username;

	@Pattern(regexp="S{6,30}")//匹配6-30个非空白字符
    private String password;

    private Integer personid;

    private Date updatetime;

    private String updateuser;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPersonid() {
        return personid;
    }

    public void setPersonid(Integer personid) {
        this.personid = personid;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(String updateuser) {
        this.updateuser = updateuser;
    }
    public void say(String str){
    	System.out.println("user say"+str+"!");
    }
}